package com.momo.conroller;

import com.momo.res.JSONResult;
import com.momo.service.WxMpTemplateMessageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Kagome on 2019/5/20.
 */
@RestController
@RequestMapping("/wx/wxMpTemplateMessage")
@Slf4j
public class WxMpTemplateMessageController {
    @Autowired
    private WxMpTemplateMessageService wxMpTemplateMessageService;

    @RequestMapping("/sendMsgToWxUser/{openId}")
    public JSONResult sendMsgToWxUser(@PathVariable String openId){
       return wxMpTemplateMessageService.wxMpTemplateMessage(openId);
    }
}
